package com.foruo.sc.log.demo.controller;

import com.foruo.sc.log.client.annotation.ApiLogger;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 案例控制层
 * @author GaoYuan
 * @date 2018/4/9 下午3:43
 */
@RestController
@RequestMapping("/demo")
public class DemoController {

    @ApiLogger("执行某某操作")
    @PostMapping
    @GetMapping
    public void demo(){
        System.out.println("执行某某操作");
    }

}
